<?php
include_once 'kahlua.ini';
include_once 'classes/utils/smarty_connect.php';
include_once 'classes/handlers/videosHandler.php';
include_once 'classes/db.php';
include_once 'classes/classNotas.php';

$smarty = new smarty_connect;
$smarty->template_dir = '/projects/newmasmedio/templates';

//Todo lo que alimenta el header y los laterales
$myNota = new Notas();
$arrColumna = $myNota->getColumnaRodrigo();
$enResumen = $myNota->getEnResumen();
$arrVideos = videosHandler::getTop3Videos();

//El video principal y el historial
$vid = $_GET["vid"];
$mainVideo = videosHandler::getMainVideo($vid);
$videos20 = videosHandler::getLast20();


$smarty->assign("CSS", array("newmasmedio.css", "videos.css"));
$smarty->assign("JS", array("jquery-1.3.2.js", "masmedio.js"));
$smarty->assign("title", "MasMedio.com | Noticias al instante - Videos de MasTV");
$smarty->assign("arrVideos", $arrVideos);
$smarty->assign("arrColumna", $arrColumna);
$smarty->assign("enResumen", $enResumen);
$smarty->assign("mainVideo", $mainVideo[0]);
$smarty->assign("videos20", $videos20);
$smarty->display('/projects/newmasmedio/templates/videos.tpl');

